package com.control.qct.businesssteward.model;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2018/1/10 0010.
 */

public class OrderDetailModel implements Serializable{

    /**
     * orderSN : 072018031500009
     * createDT : 2018-03-15 10:53:46
     * payways : ["现金"]
     * state : 交易成功
     * cashier : 张鑫鸿
     * totalAmount : 858
     * orderDiscount : 0
     * preferentialSubTotal : 80
     * receive : 858
     * details : [{"barcode":"6922312392540","title":"250g凯悦日式草饼","unit":"盒","purchaseNumber":8,"actualPrice":0,
     * "categoryTitle":"特产/糕点/麻薯"},{"barcode":"6901049113055","title":"XBT221正山小种","unit":"罐","purchaseNumber":1,
     * "actualPrice":98,"categoryTitle":"特产/茶叶/正山小种"},{"barcode":"6901049113130","title":"XBT332 特供海堤红","unit":"盒",
     * "purchaseNumber":1,"actualPrice":600,"categoryTitle":"特产/茶叶/其他"},{"barcode":"6901049113062","title":"XBT321
     * 海堤红1号","unit":"盒","purchaseNumber":1,"actualPrice":160,"categoryTitle":"特产/茶叶/其他"}]
     */

    private String orderSN;
    private String createDT;
    private String state;
    private String cashier;
    private double totalAmount;
    private double orderDiscount;
    private double preferentialSubTotal;
    private double receive;
    private List<String> payways;
    private List<DetailsBean> details;

    public String getOrderSN() {
        return orderSN;
    }

    public void setOrderSN(String orderSN) {
        this.orderSN = orderSN;
    }

    public String getCreateDT() {
        return createDT;
    }

    public void setCreateDT(String createDT) {
        this.createDT = createDT;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getCashier() {
        return cashier;
    }

    public void setCashier(String cashier) {
        this.cashier = cashier;
    }

    public double getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(double totalAmount) {
        this.totalAmount = totalAmount;
    }

    public double getOrderDiscount() {
        return orderDiscount;
    }

    public void setOrderDiscount(double orderDiscount) {
        this.orderDiscount = orderDiscount;
    }

    public double getPreferentialSubTotal() {
        return preferentialSubTotal;
    }

    public void setPreferentialSubTotal(double preferentialSubTotal) {
        this.preferentialSubTotal = preferentialSubTotal;
    }

    public double getReceive() {
        return receive;
    }

    public void setReceive(double receive) {
        this.receive = receive;
    }

    public List<String> getPayways() {
        return payways;
    }

    public void setPayways(List<String> payways) {
        this.payways = payways;
    }

    public List<DetailsBean> getDetails() {
        return details;
    }

    public void setDetails(List<DetailsBean> details) {
        this.details = details;
    }

    @Override
    public String toString() {
        return "OrderDetailModel{" +
                "orderSN='" + orderSN + '\'' +
                ", createDT='" + createDT + '\'' +
                ", state='" + state + '\'' +
                ", cashier='" + cashier + '\'' +
                ", totalAmount=" + totalAmount +
                ", orderDiscount=" + orderDiscount +
                ", preferentialSubTotal=" + preferentialSubTotal +
                ", receive=" + receive +
                ", payways=" + payways +
                ", details=" + details +
                '}';
    }

    public static class DetailsBean {
        /**
         * barcode : 6922312392540
         * title : 250g凯悦日式草饼
         * unit : 盒
         * purchaseNumber : 8
         * actualPrice : 0
         * categoryTitle : 特产/糕点/麻薯
         */

        private String barcode;
        private String title;
        private String unit;
        private int purchaseNumber;
        private double actualPrice;
        private String categoryTitle;
        private String imageUrl;

        public String getImageUrl() {
            return imageUrl;
        }

        public void setImageUrl(String imageUrl) {
            this.imageUrl = imageUrl;
        }

        public String getBarcode() {
            return barcode;
        }

        public void setBarcode(String barcode) {
            this.barcode = barcode;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getUnit() {
            return unit;
        }

        public void setUnit(String unit) {
            this.unit = unit;
        }

        public int getPurchaseNumber() {
            return purchaseNumber;
        }

        public void setPurchaseNumber(int purchaseNumber) {
            this.purchaseNumber = purchaseNumber;
        }

        public double getActualPrice() {
            return actualPrice;
        }

        public void setActualPrice(double actualPrice) {
            this.actualPrice = actualPrice;
        }

        public String getCategoryTitle() {
            return categoryTitle;
        }

        public void setCategoryTitle(String categoryTitle) {
            this.categoryTitle = categoryTitle;
        }

        @Override
        public String toString() {
            return "DetailsBean{" +
                    "barcode='" + barcode + '\'' +
                    ", title='" + title + '\'' +
                    ", unit='" + unit + '\'' +
                    ", purchaseNumber=" + purchaseNumber +
                    ", actualPrice=" + actualPrice +
                    ", categoryTitle='" + categoryTitle + '\'' +
                    '}';
        }
    }
}
